package gao.xiaolei.copyEntity;

import gao.xiaolei.entity.TestBase;
import gao.xiaolei.entity.TestRequirement;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
@Data
public class TestReqCopy extends TestBase {
    @Column(columnDefinition = "INT default 0")
    private Integer grade;//分数

    @Column(columnDefinition = "char(32)")
    private String judge;//评分人

    @Column(columnDefinition = "char(40)")
    private String commitId;//git的提交Id

    public TestReqCopy(TestRequirement req, String commitId) {
        super(req.getId(), req.getTitle(), req.getAuthor(), req.getStatus(), req.getParentId(), req.getProject(), req.getCreateDate(), req.getUpdateDate(), req.getLeaf());
        this.commitId= commitId;
        this.grade=0;
    }

    public TestReqCopy() {
    }
}
